package singleton;

/**
 * FileName: HungrySingleton
 * Author:   周壮
 * Date:     2020/3/5 10:46
 * Description:
 */
public class HungrySingleton {

    //先静态、后动态
    // 先属性、后方法
    // 先上后下
    private static final HungrySingleton hungrySingleton = new HungrySingleton();
    private HungrySingleton() {
    }
    public static HungrySingleton getInstance() {
        return hungrySingleton;
    }
}
